<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
              function  arr (a1,a2){
                return a1+a2
              }

      console.log(arr(500,200)); */

      /*
      function a1(d,c){
        return d*c
      }
      console.log(a1(50,20)); */
      
      function a1() {
        var b1 = arguments[0];
        for (var i = 0; i < arguments.length; i++) {
          if (arguments[i] > b1) {
            b1 = arguments[i];
          }
        }

        return b1;
      }

      alert(a1(10,56,77));
    </script>
  </body>
</html>
